function(obj, config, that) {
    var ax = layui.ax
        , $ = layui.jquery
        , form = layui.form
        , view = layui.view

    view.openPage({content: $('#auto-permission').html(), area: ['500px', '300px'], success: function(layero, index) {
            form.on('submit(auto-permissions)', function(data) {
                var ajax = new ax('<?= $url?>', function (res) {
                    layer.msg('扫描完成');
                    that.reloadTable();
                    layer.close(index);
                });
                ajax.setData(data.field);
                ajax.setMethod('get');
                ajax.send();
                return false;
            })
        }});
}


